<template>
  <view class="revise-first">
    <view class="revise-first-head">
      <text>姓名</text><input type="text" v-model="input" focus='{true}' placeholder="不超过8个汉字或16个字母">
    </view>
    <text class="revise-last">30天内仅可自主修改1次，如需额外修改请联系在线客服</text>
    <button class="button" @click="back">确定</button>
  </view>
</template>

<style scoped>
  .revise-first {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .revise-first-head {
    width: 100%;
    height: 120rpx;
    margin-left: 30rpx;
    margin-top: 30rpx;
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }
  input {
    width: 80%;
    height: 120rpx;
    margin-left: 30rpx;
    padding-left: 10rpx;
  }
  .revise-last {
    font-size: 14px;
    color: #bbb;
    margin-top: 20rpx;
    text-align: center;
  }
  .button {
    width: 80%;
    text-align: center;
    height: 100rpx;
    line-height: 100rpx;
    border: 1px solid #fe7200;
    margin-top: 30rpx;
    background-color: #fe7200;
    border-radius: 10rpx;
    color: #fff;
  }
</style>

<script>
export default {
  data(){
    return{

    }
  },
  methods:{
   back(){
    this.$store.state.revise = this.input
   }
  }
}
</script>